<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
    <script>
        (function(){
			var Person = function(height){
				this.height = height;
			}
			Person.prototype.say = function(){
				alert(this.height);
			}

			// var person = new Person(171);
			// person.say();

			var person = {};
			Person.call(person,171);   //负责传参
			person.__proto__ = Person.prototype;    //负责继承
			person.say();
  
		})();
    </script>
</html>